/* 文档导出组件样式 */

.document-exporter {
  display: inline-block;
}

.document-preview {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
}

.preview-content {
  padding: 40px;
  font-family: 'FangSong_GB2312', '仿宋_GB2312', '仿宋', serif;
  line-height: 1.5;
  background: white;
}

/* 预览内容样式 */
.preview-content h1 {
  font-family: 'SimHei', '黑体', sans-serif !important;
  font-size: 16pt !important;
  font-weight: bold !important;
  text-align: left !important;
  margin-top: 1em !important;
  margin-bottom: 1em !important;
  line-height: 1.5 !important;
  color: #000 !important;
}

.preview-content h2 {
  font-family: 'SimHei', '黑体', sans-serif !important;
  font-size: 14pt !important;
  font-weight: bold !important;
  text-align: left !important;
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
  line-height: 1.5 !important;
  color: #000 !important;
}

.preview-content p {
  font-family: 'FangSong_GB2312', '仿宋_GB2312', '仿宋', serif !important;
  font-size: 12pt !important;
  text-align: justify !important;
  text-indent: 2em !important;
  line-height: 1.5 !important;
  margin-bottom: 0.5em !important;
  color: #000 !important;
}

.preview-content .document-title {
  text-align: center !important;
  margin-bottom: 2em !important;
  text-indent: 0 !important;
}

.preview-content ul,
.preview-content ol {
  margin-left: 2em;
  margin-bottom: 0.5em;
}

.preview-content li {
  font-family: 'FangSong_GB2312', '仿宋_GB2312', '仿宋', serif !important;
  font-size: 12pt !important;
  line-height: 1.5 !important;
  margin-bottom: 0.25em;
}

/* 设置面板样式 */
.export-settings {
  padding: 16px 0;
}

.setting-item {
  margin-bottom: 16px;
}

.setting-item label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #262626;
}

.format-info {
  background: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.format-info h4 {
  margin: 0 0 12px 0;
  color: #262626;
  font-size: 14px;
}

.format-info ul {
  margin: 0;
  padding-left: 20px;
}

.format-info li {
  margin-bottom: 8px;
  color: #595959;
  font-size: 13px;
  line-height: 1.4;
}

.browser-info {
  background: #f0f2f5;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
}

.browser-info p {
  margin: 0 0 8px 0;
}

.browser-info p:last-child {
  margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .document-preview {
    max-height: 400px;
  }
  
  .preview-content {
    padding: 20px;
  }
  
  .preview-content h1 {
    font-size: 14pt !important;
  }
  
  .preview-content h2 {
    font-size: 13pt !important;
  }
  
  .preview-content p {
    font-size: 11pt !important;
  }
}

/* 滚动条样式 */
.document-preview::-webkit-scrollbar {
  width: 6px;
}

.document-preview::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.document-preview::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.document-preview::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
